﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TunnelsOfDeath.Managers
{
    class StateManager
    {

        public void ChangeState(GameState toState)
        {
            switch (toState)
            {
                case GameState.game:
                    Globals.CurrentState = GameState.game;
                    break;
                case GameState.pause:
                    break;
                case GameState.startup:
                    break;
                case GameState.startscreen:
                    SetStartScreen();
                    break;
                case GameState.menu:
                    break;
                case GameState.levelpassed:
                    break;
                case GameState.gameover:
                    break;
                case GameState.alllevelspassed:
                    break;
                case GameState.levellost:
                    Globals.CurrentState = GameState.levellost;
                    break;
                default:
                    break;
            }
        }

        protected void SetStartScreen()
        {
            Globals.Animated.Clear();

        }

    }
}
